import Vue from "vue";

import VueRouter from "vue-router";

import Login from "../view/login"
import Registered from "../view/registered"
import Article from "../view/article"
import List from "../view/list"


Vue.use(VueRouter);

const router = new VueRouter({
  routes: [
    {
      path: "/login",
      component: Login,
    },
    {
      path: "/registered",
      component: Registered,
    },
    {
      path: "/article",
      component: Article,
    },
    {
      path: "/list",
      component: List,
    }
  ]
});

export default router;